package com.pubinfo.passbook.api.controller.other;

import com.pubinfo.passbook.common.model.dubbo.ESBServiceData;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;
import com.pubinfo.passbook.common.service.dubbo.DubboService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collection;

@RestController
@RequestMapping(value = "vat")
@Api(tags = "转发专用服务器服务")
@Slf4j
public class ForwardVATController {
  
  @Autowired
  DubboService vatService;
  
  @PostMapping("getPersonsDetail")
  @ApiOperation(value = "查询人力接口")
  public JsonResult<Collection<ESBServiceData.CertDetail>> getPersonsDetail(@RequestBody ESBServiceData.Cert cert) {
    return vatService.getPersonsDetailByAcct(cert);
    
  }
}
